<?php
namespace app\admin\validate;

use think\Validate;

class Tbb extends Validate
{
    protected $rule = [
        'id'   => 'require',
        'name' => 'require',
        'xzwcl'  => 'require',
        'xzgq'  => 'require|in:0,1,2,3',
        'xswcl'  => 'require',
        'xsgq'  => 'require|in:0,1,2,3',
    ];

    protected $message = [
        'id.require'   => '缺少标识',
        'name.require' => '请输入单位名称',
        'xzwcl.require'  => '请输入行政完成率',
        'xswcl.require'   => '请输入刑事完成率',
        'xzgq.require' => '行政挂旗必选',
        'xsgq.require' => '刑事挂旗必选',
        'xzgq.in' => '行政挂旗类型错误',
        'xsgq.in' => '刑事挂旗类型错误'
    ];
}
